package com.espirit.eap.sa;

import com.googlecode.cswish.struts.spring.Executor;

public class FieldPermissionParser implements Executor<String, PathFieldPermission> {
	@Override
	public String execute(PathFieldPermission pathFieldPermission) {
		ScopeType scopeType = pathFieldPermission.fieldPermission.getScopeType();
		String condition = null;
		if (scopeType == null || scopeType.equals(ScopeType.Global)) {
			condition = null;//return fieldPermission.getCondition();
		} else{
			condition = "";
		}
		return condition;
	}
}
